package com.chance.cc.crawler.prod.command.trigger.domain.news.kr36;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.kr36.Kr36ArticleRealtimeCrawlerScheduleJob;

import static com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger.metaServiceCommand_17;

public class Kr36CrawlerScheduleTrigger {

    public static void main(String[] args) {
        publishKr36RealtimeScheduleTriggerInfo();
    }

    public static void publishKr36RealtimeScheduleTriggerInfo() {
        CrawlerJob crawlerJob = Kr36ArticleRealtimeCrawlerScheduleJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                Kr36ArticleRealtimeCrawlerScheduleJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                //"0 0 * * * ? ",
                "0 0 * * * ?",
                "36kr网文章采集文章 每一个小时采集一次"
        );
    }

}
